/* 基础样式 */
:root {
    --color-primary: #2D5B3E;
    --color-secondary: #D4A373;
    --color-accent: #E9C46A;
    --color-neutral: #F5F5F5;
    --color-neutral-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-neutral);
    color: var(--color-neutral-dark);
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    height: 3rem;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

/* 导航链接 */
.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid #eee;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    padding: 0.75rem 0;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

/* 轮播图 */
.carousel {
    height: 70vh;
    min-height: 500px;
    background-color: var(--color-primary);
    overflow: hidden;
    position: relative;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-content {
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.carousel-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: white;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.carousel-button:hover {
    background-color: rgba(212, 163, 115, 0.9);
    transform: scale(1.05);
}

/* 轮播控制 */
.carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: white;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--color-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}

/* 通用部分样式 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.card-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-image i.fa {
    font-size: 4rem;
    color: white;
    transition: transform 0.3s ease;
}

.card:hover .card-image i.fa {
    transform: scale(1.1);
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-image a:hover {
    cursor: pointer;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card-description {
    color: #666;
    margin-bottom: 1rem;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.button:hover {
    background: #0056b3;
}

.button.primary {
    background: #28a745;
}

.button.primary:hover {
    background: #218838;
}

/* 页脚样式 */
.footer {
    background-color: var(--color-neutral-dark);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4a5568;
}

.footer-text {
    color: #a0aec0;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--color-primary);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(45, 91, 62, 0.9);
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    color: var(--color-primary);
    font-weight: 500;
}

/* 登录链接样式 */
.login-link {
    display: block;
}

.login-link.hidden {
    display: none;
}

.qr-code {
    margin: 1rem 0;
    text-align: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code img:hover {
    transform: scale(1.05);
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.app-links a {
    color: #666;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.app-links a:hover {
    color: #e74c3c;
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/logo.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-description {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* 攻略内容样式 */
.guide-content {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.guide-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.guide-section h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.guide-section h3 i {
    margin-right: 10px;
    color: #4CAF50;
}

.guide-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.guide-card h4 {
    color: #4CAF50;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.guide-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.guide-card ul {
    list-style: none;
    padding: 0;
}

.guide-card ul li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.guide-card ul li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-title {
        font-size: 2em;
    }

    .guide-content {
        grid-template-columns: 1fr;
    }

    .guide-section {
        padding: 15px;
    }
}

/* 动画效果 */
.guide-section {
    transition: transform 0.3s ease;
}

.guide-section:hover {
    transform: translateY(-5px);
}

/* 图标样式 */
.guide-section i {
    font-size: 1.2em;
}

/* 链接样式 */
.guide-card a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-card a:hover {
    color: #388E3C;
}

/* 列表样式优化 */
.guide-card ul li {
    position: relative;
    padding-left: 20px;
}

.guide-card ul li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

/* 卡片悬停效果 */
.guide-card {
    transition: box-shadow 0.3s ease;
}

.guide-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 移除卡片整体点击效果 */
.guide-card {
    cursor: default;
}

.guide-card a {
    cursor: pointer;
}

/* 卡片链接包装器 */
.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-link-wrapper:hover {
    color: inherit;
}

.card-link-wrapper .card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
}

.card-link-wrapper .card-image i {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.card-link-wrapper:hover .card-image i {
    transform: scale(1.1);
}

.card-link-wrapper .card-content {
    padding: 1.5rem;
}

.card-link-wrapper .card-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card-link-wrapper:hover .card-title {
    color: var(--color-secondary);
}

.card-link-wrapper .card-description {
    color: #666;
    margin-bottom: 1rem;
}

.card-link-wrapper .card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.card-link-wrapper .card-list li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.card-link-wrapper .card-list li:last-child {
    border-bottom: none;
}

.card-link-wrapper .card-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link-wrapper .card-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link-wrapper:hover .card-link {
    color: var(--color-secondary);
}

.card-link-wrapper:hover .card-link i {
    transform: translateX(5px);
}

/* 联系页面样式 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 订阅表单样式 */
.subscribe-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    border-color: var(--color-primary);
    outline: none;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* 信息卡片样式 */
.info-card {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 2rem;
    text-align: center;
}

.info-content h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-content p {
    color: #666;
    margin: 0;
}

/* 社交媒体部分 */
.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.social-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-primary);
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-link span {
    font-size: 0.9rem;
}

/* 二维码部分样式 */
.qr-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.qr-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-item img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.qr-item img:hover {
    transform: scale(1.05);
}

.qr-item span {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .qr-grid {
        grid-template-columns: 1fr;
    }
}

/* 订单列表样式 */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.order-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.order-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.order-status span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-unpaid {
    background: #ffc107;
    color: #000;
}

.status-unused {
    background: #17a2b8;
    color: #fff;
}

.status-completed {
    background: #28a745;
    color: #fff;
}

/* 收藏列表样式 */
.favorite-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.favorite-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.favorite-info {
    flex: 1;
}

.favorite-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.remove-favorite {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
}

.remove-favorite:hover {
    color: #c82333;
}

/* 评价列表样式 */
.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-header h3 {
    margin: 0;
    font-size: 16px;
}

.review-rating {
    color: #ffc107;
}

.review-content {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

.review-date {
    color: #666;
    font-size: 12px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-item,
    .favorite-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-status {
        margin-top: 10px;
    }
    
    .favorite-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}